import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { GoodsComponent } from './goods/goods.component';
import { FKMComponent } from './fkm/fkm.component';
import { LastYearComponent } from './last-year/last-year.component';

import { RouterModule, UrlSegment, Routes } from '@angular/router';

const appRoutes: Routes = [
  { path: '', component: GoodsComponent },
  { path: 'fkm', component: FKMComponent },
  { path: 'lastYear', component: LastYearComponent },
];

@NgModule({
  declarations: [AppComponent, GoodsComponent, FKMComponent, LastYearComponent],
  imports: [
    BrowserModule,
    RouterModule.forRoot(
      appRoutes
      //   { enableTracing: true } // <-- debugging purposes only
    ),
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}
